package com.rogers.monster;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import junit.framework.TestCase;

public abstract class BaseTestCase extends TestCase{
	private static final ApplicationContext SPRING_APP_CONTEXT =
		new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml");

	public Object getBean(String beanId) {
		return SPRING_APP_CONTEXT.getBean(beanId);
	}
}
